#include "GMCreateClientActor.h"
#include "Engine.h"
#include "GameState.h"

void GMCreateClientActor::WriteToSckMsg( Networking::SockMsg* sm )
{
	sm->WriteInt(m_clientID);
    sm->WriteInt(m_actorID);
}
bool GMCreateClientActor::Execute()
{
    //This should only call the CLIENT implementation!!!
	Engine::Instance()->GetCurrentState()->CreatePlayer(m_clientID, m_actorID);
	return true;
}
bool GMCreateClientActor::ReadFromSckMsg( Networking::SockMsg* sm )
{
	if(!sm->ReadInt(&m_clientID))
		return false;
    if(!sm->ReadInt(&m_actorID))
		return false;
    return true;
}
